package main

import (
	"fmt"
	"time"
)

func main() {
	c := make(chan int, 1)

	b := make(chan int)

	go func() {
		for {
			c <- 1
			time.Sleep(1 * time.Second)
		}
	}()

	for {
		select {
		case data := <-c:
			fmt.Println(data)
		case <-b:
			fmt.Println("wc")
		}
	}
}
